﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VideoFootage
{
   public   class LogHelper
    {
        public static void WriteLogError(Type type, Exception ex) {

            log4net.ILog log = log4net.LogManager.GetLogger(type);
            log.Error("Error",ex);
        }
        public static void WriteLogFatal(Type type, Exception ex)
        {

            log4net.ILog log = log4net.LogManager.GetLogger(type);
            log.Fatal("Fatal", ex);
        }
        public static void WriteLogInfo(Type type, Exception ex)
        {

            log4net.ILog log = log4net.LogManager.GetLogger(type);
            log.Info("Info", ex);
        }
        public static void WriteLogWarn(Type type, Exception ex)
        {

            log4net.ILog log = log4net.LogManager.GetLogger(type);
            log.Warn("Warn", ex);
        }
        public static void WriteLog(Type type, string msg)
        {

            log4net.ILog log = log4net.LogManager.GetLogger(type);
            log.Error(msg);
        }

    }
}
